package records

import (
	"github.com/golib/mysql"
)

const RecordNameOnlineStudentAppVersion = "online_student_app_version"

func init() {
	var r = &OnlineStudentAppVersion{}
	mysql.RegisterRecord(r.Name(), r)
}

type OnlineStudentAppVersion struct {
	VersionId    int    `json:"versionId" form:"versionId" column:"version_id" primary:"true" modify:"false"`
	VersionCode  int    `form:"versionCode" column:"version_code" modify:"true" json:"versionCode"`
	VersionName  string `modify:"true" json:"versionName" form:"versionName" column:"version_name"`
	VersionDesc  string `json:"versionDesc" form:"versionDesc" column:"version_desc" modify:"true"`
	Status       int    `json:"status" form:"status" column:"status" modify:"true"`
	Platform     int    `json:"platform" form:"platform" column:"platform" modify:"true"`
	DownloadLink string `json:"downloadLink" form:"downloadLink" column:"download_link" modify:"true"`
	CreateTime   string `form:"createTime" column:"create_time" modify:"false" json:"createTime"`
	UpdateTime   string `json:"updateTime" form:"updateTime" column:"update_time" modify:"false"`
}

func (r *OnlineStudentAppVersion) Name() string {
	return RecordNameOnlineStudentAppVersion
}
